export function getRealoffset(node) {
  let left = 0
  let top = 0
  while (node) {
    left += node.offsetLeft + node.clientLeft
    top += node.offsetTop + node.clientTop
    node = node.offsetParent
  }
  // console.log('left', left)
  // console.log('top', top)
  return { left, top }
}
